package com.example.papercutting.ui;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageButton;
import android.widget.ImageView;

import com.example.papercutting.R;

public class ShowWork extends AppCompatActivity {

    private ImageView imageView;
    private ImageButton backButton;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_show_work);
        Intent intent = getIntent();
        int image = intent.getIntExtra("image", R.drawable.work1);
        imageView = findViewById(R.id.show_work);
        imageView.setImageResource(image);
        backButton = findViewById(R.id.show_back);
        backButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
    }
}